//
//  SFHomeController.swift
//  SeeFM_Swift
//
//  Created by CBCT_MBP on 2021/5/19.
//

import UIKit

class SFHomeController: SFBaseController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    
    override func setup() {
        super.setup()
        
        hideNavigationBar = true
      
//        addVipEntrance()
    }
    
    func addVipEntrance() {
        
        let vip = UIButton(type: .custom)
        vip.addTarget(self, action: #selector(toVipVideo), for: .touchUpInside)
        vip.setImage(UIImage(named: "vip"), for: .normal)
        vip.titleLabel?.font = UIFont.systemFont(ofSize: 15, weight: .regular)
        vip.setTitleColor(kBlackColor_70, for: .normal)
        view.addSubview(vip)
        vip.snp.makeConstraints { (make) in
            make.center.equalToSuperview()
            make.width.equalTo(100)
            make.height.equalTo(100)
        }
        
    }

    @objc func toVipVideo() {
        let vc = VIPController.init()
        self.navigationController?.pushViewController(vc, animated: true)
    }

}
